using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace WCSFContrib.PageFlow.Xml.Configuration
{
    public class XmlPageFlowConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("views", IsDefaultCollection = false, IsKey = false)]
        public ViewConfigurationElementCollection Views
        {
            get { return (ViewConfigurationElementCollection)base["views"]; }
        }

        [ConfigurationProperty("allowBackButton", IsRequired = false)]
        public bool AllowBackButton
        {
            get { return (bool)base["allowBackButton"]; }
            set { base["allowBackButton"] = value; }
        }

        [ConfigurationProperty("navigationGraphs", IsDefaultCollection = false, IsRequired = false, IsKey = false)]
        public NavigationGraphConfigurationElementCollection NavigationGraphs
        {
            get { return (NavigationGraphConfigurationElementCollection)base["navigationGraphs"]; }
        }

        [ConfigurationProperty("objectTypes")]
        public ObjectTypesConfigurationElement ObjectTypes
        {
            get { return (ObjectTypesConfigurationElement)base["objectTypes"]; }
            set { base["objectTypes"] = value; }
        }
    }
}
